package com.ling.sbbyyds.interaction.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 天道酬勤、学无止境
 *
 * @Description: 类描述
 * @author: ling
 * @date: 2022年05月23日
 */
@Data
@ApiModel(description = "社区帖子返回视图数据")
public class CommunityPostsVo {

    @ApiModelProperty("社区帖子id")
    private Long postsId;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("用户名称")
    private String userName;

    @ApiModelProperty("用户头像")
    private String userAvatar;

    @ApiModelProperty("帖子标题")
    private String title;

    @ApiModelProperty("帖子内容")
    private String content;

    @ApiModelProperty("浏览数")
    private Integer viewNum;

    @ApiModelProperty("是否关注 true.已关注  false：未关注")
    private Boolean attFlag;

    @ApiModelProperty("发布时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date releaseTime;

    @ApiModelProperty("图片列表")
    private List<String> imageList;

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    @ApiModelProperty("图片列表")
    private String imageListStr;

}
